updating oE product

product

include math.e 
namespace math 
public function product(object a) 

computes the product of all the atom in the argument, no matter how deeply nested.

Parameters:
  1. values : an object, all atoms of which will be multiplied up, no matter how nested.
Returns:

An atom, the product of all atoms in flatten(values).

Comments:

This function may be applied to an atom or to all elements of a sequence

Example 1:
a = product({10, 20, 30}) 
-- a is 6000 
 
a = product({10.5, {11.2} , 8.1}) 
-- a is 952.56 
See Also:

sum, or_all

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu